
<style>
    .red{
        color: red;
    }
</style>
<input type="hidden" name="reply_id" value="{$reply['id']}" />


<div class="panel panel-default">
    <div class="panel-heading">
        基本设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 楼盘名称：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="title" class="form-control span7"
                       placeholder="" name="title" value="{$reply['title']}">
            </div>
        </div>



        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 楼盘地址：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="lpaddress" class="form-control span7"
                        placeholder="" name="lpaddress" value="{$reply['lpaddress']}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 楼盘价格：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="price" class="form-control span7"
                       placeholder="" name="price" value="{$reply['price']}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 售楼电话：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="title" class="form-control span7"
                       placeholder="" name="sltel" value="{$reply['sltel']}">
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>咨询电话：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="title" class="form-control span7"
                       placeholder="" name="zxtel" value="{$reply['zxtel']}">
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>项目介绍：</label>
            <div class="col-sm-9 col-xs-12">
                <textarea name="intro" class="form-control span7 richtext" id="intro" cols="70" >{$reply['intro']}</textarea>
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>预约报名标题：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="order_title" class="form-control span7"
                         placeholder="" name="order_title" value="{$reply['order_title']}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>预约报名说明：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="order_title" class="form-control span7"
                       placeholder="" name="order_remark" value="{$reply['order_remark']}">
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>开盘时间：</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_date('kptime',$reply['ktime'],false)}


            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>入住时间：</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_date('rztime',$reply['rztime'],false)}
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>开发商：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="copyright"
                       class="form-control span7" placeholder="" name="kfs"
                       value="{$reply['kfs']}">
            </div>
        </div>



                </div>

    </div>







<!--说明项-->



<div class="panel panel-default">
    <div class="panel-heading">
       说明项
    </div>
    <div class="panel-body">
        <div class="form-group">
         
            <div class="col-sm-9 col-xs-12">


                <table class='table'>

                    <thead>
                        <tr>
                            <th>说明名称</th>
                            <th>说明内容</th>
                            <th>排序</th>

                            <th>操作</th>
                        </tr>
                    </thead>

                    <tbody id="house-items">


                    {loop $house_items $house_item}
                    <tr class='house_item'>
                        <td><input name="house_iname[]" type="text"
                                   class="form-control span3" value="{$house_item['iname']}"
                                /></td>
                        <td><input name="house_icontent[]" type="text"
                                   class="form-control span3" value="{$house_item['icontent']}"
                                /></td>

                        <td><input name="house_sort[]" type="text"
                                   class="form-control span1" value="{$house_item['sort']}"
                                /></td>

                        <td>
                            <input  name="house_ids[]" type="hidden" value="{$house_item['id']}" />
                            <a href='javascript:;' onclick='removeHouseItem(this)'><i
                                    class='icon icon-remove fa fa-times'></i> 删除</a></td>
                    </tr>
                    {/loop}

                    </tbody>

                </table>





                <a href="javascript:;" onclick="addHItem();"><i class="icon-plus-sign" title="添加说明"></i>添加说明</a>


            </div>
        </div>







    </div>

</div>










<!--图片设置-->





<div class="panel panel-default">
    <div class="panel-heading">
        图片设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 欢迎页封面图片：</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('cover_img',$reply['cover_img']);}<span><font color="red">建议大小(640*900px)</font></span>
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 概览篇图片：</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('overview_img',$reply['overview_img']);}<span><font color="red">建议大小(750*584px)</font></span>
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 项目介绍篇图片：</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('intro_img',$reply['intro_img']);}<span><font color="red">建议大小(750*584px)</font></span>
            </div>
        </div>

                </div>

    </div>



<!--图文设置-->

<div class="panel panel-default">
    <div class="panel-heading">
        图片设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 图文标题：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="news_title"
                       class="form-control span7" placeholder="" name="news_title"
                       value="{$reply['news_title']}">
            </div>
        </div>

        <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>图文预览图：</label>
        <div class="col-sm-9 col-xs-12">
            {php echo tpl_form_field_image('news_icon',$reply['news_icon']);}
        </div>
    </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>图文描述：</label>
            <div class="col-sm-9 col-xs-12">
                <textarea style="height: 60px;" name="news_content"
                          class="form-control span7" cols="60">{$reply['news_content']}</textarea>
            </div>
        </div>


    </div>

</div>


<!-- 分享设置-->




<div class="panel panel-default">
    <div class="panel-heading">
         分享设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 分享标题：</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" id="news_title"
                       class="form-control span7" placeholder="" name="share_title"
                       value="{$reply['share_title']}">
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>分享图标：</label>
            <div class="col-sm-9 col-xs-12">
                {php echo tpl_form_field_image('share_icon',$reply['share_icon']);}
            </div>
        </div>


        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span>图文描述：</label>
            <div class="col-sm-9 col-xs-12">
                <textarea style="height: 60px;" name="share_content"
                          class="form-control span7" cols="60">{$reply['share_content']}</textarea>
            </div>
        </div>


    </div>

</div>

<script>



    require(['jquery', 'util'], function($, u){
        $(function(){
            u.editor($('#intro')[0]);

        });
    });

</script>


<script>
    function addHItem() {

        var index=$("#house-items tr").length+1;

        var html = "<tr class='house_item'>";
        html += "<td><input name='house_iname[]' type='text' class='form-control span3' value=''  /></td>";
        html += "<td><input name='house_icontent[]' type='text' class='form-control span3' value='' /></td>";

        html+="<td><input name='house_sort[]' type='text' class='form-control span1' value='"+index+"' /></td> ";

        html += "<td> <input  name='house_ids[]' type='hidden' value='' /><a href='javascript:;' onclick='removeHouseItem(this)'><i class='icon icon-remove fa fa-times'></i> 删除</a>";
        html += "</td>";
        html += "</tr>";
        $("#house-items").append(html);

    }
    function removeHouseItem(obj) {
        $(obj).parent().parent().remove();
    }




</script>